using System;
using System.Collections.Generic;
using System.Text;
using MoreGen.Util;
using System.ComponentModel;
using System.Xml.Serialization;

namespace MoreGen.MapTypes
{
    public class ProcMap
    {
        internal static ProcMap CurrentSerial;
        private ProcMap()
        {
            CurrentSerial = this;
            _Project = Project.CurrentSerial;
        }
        public ProcMap(Project p)
        {
            _Project = p;
        }

        private Project _Project;
        [XmlIgnore()]
        public Project Project
        {
            get { return _Project; }
        }

        private SerialDictionary<string, ColumnMap> _Parms = new SerialDictionary<string, ColumnMap>();
        [Browsable(false)]
        public SerialDictionary<string, ColumnMap> Parms
        {
            get { return _Parms; }
            set { _Parms = value; }
        }
        private string _ProcName;
        [Category("Database")]
        public string ProcName
        {
            get { return _ProcName; }
            set 
            {
                _ProcName = value;
                _MethodName = value;
            }
        }
        private string _MethodName;
        public string MethodName
        {
            get { return _MethodName; }
            set { _MethodName = value; }
        }
    }
}
